<?php
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://www.youdi365.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author:  心云间、凝听 <981248356@qq.com>
// +----------------------------------------------------------------------
namespace Admin\Controller;

use Admin\Builder\AdminFormBuilder;
use Admin\Builder\AdminListBuilder;
class DashboardController extends AdminController {
    public function index(){
        $this->meta_title ='仪表盘';
        $this->hide_panel=true;  
    	//系统信息
    	$mysql= M()->query("select VERSION() as version");
    	$mysql_v=$mysql[0]['version'];
    	$mysql_v=empty($mysql_v)?'未知':$mysql_v;
    	$server_info = array(
    			'操作系统'=> PHP_OS,
    			'运行环境'=> $_SERVER["SERVER_SOFTWARE"],
    			'PHP运行方式'=> php_sapi_name(),
    			'MYSQL版本'=>$mysql_v,
    			'主程序版本'=> YOUDICMF_V . "&nbsp;&nbsp;&nbsp; [<a href='http://www.youdi365.com' target='_blank'>YoudiCMF</a>]",
    			'上传附件限制'=> ini_get('upload_max_filesize'),
    			'执行时间限制'=> ini_get('max_execution_time') . "s",
    			'剩余空间'=> round((@disk_free_space(".") / (1024 * 1024)), 2) . 'M',
    	);
    	$this->assign('server_info', $server_info);

    	$this->display();
    }
}